package cn.vc.auth.mapper;

import cn.vc.auth.entity.po.VUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<VUser> {
    /**
     * 查询多个ID
     * @param ids
     * @return
     */
    List<VUser> selectByIds(List<Long> ids);
    /**
     * <h2>查询最大ID</h2>
     */
    Long selectMaxId();
    /**
     * <h2>通过账号查询</h2>
     * @return
     */
    VUser selectAccount(String account);

    int updateUsername(String account, String username);
    int updateAvatarUrlById(Long id, String avatarUrl);
}
